// 自定义组件
export const diyComp = [
  {
    __config__: {
      label: '块',
      tagIcon: 'input',
      labelWidth: null,
      tag: 'block',
      defaultValue: undefined,
      span: 24,
      layout: 'colFormItem',
      regList: []
    },
    __attr__: [
      {
        label: '颜色',
        value: 'types'
      },
      {
        label: '内容',
        value: 'title'
      }
    ],
    types: '#98cbff',
    title: ''
  },
  {
    __config__: {
      label: '日期选择器',
      labelWidth: null,
      tagIcon: 'input',
      tag: 'ms-date-picker',
      defaultValue: undefined,
      span: 24,
      layout: 'colFormItem',
      regList: []
    },
    __attr__: [
      {
        label: '格式化',
        value: 'format'
      }
    ],
    __vModel__: '',
    format: 'yyyy-MM-dd',
    type: '',
    'value-format': ''
  },
  {
    __config__: {
      label: '上传组件',
      tag: 'ms-upload',
      tagIcon: 'upload',
      layout: 'colFormItem',
      showLabel: true,
      labelWidth: null,
      required: true,
      span: 24,
      text: '点击上传',
      bindValue: false,
      noField: true
    },
    multiple: false,
    limit: 2,
    listType: 'picture-card',
    filePath: 'test',
    processId: '',
    sizeUnit: 'MB',
    fileSize: '2',
    __slot__: {
      'slot': true
    },
    __attr__: [
      {
        label: '多选',
        value: 'multiple',
        types: 'checkbox'
      },
      {
        label: '数量',
        value: 'limit',
        types: 'number'
      },
      {
        label: '类型',
        value: 'listType',
        types: 'select',
        conf: {
          lists: [
            {
              id: 'text',
              value: 'text'
            },
            {
              id: 'picture-card',
              value: 'picture-card'
            },
            {
              id: 'picture',
              value: 'picture'
            }
          ]
        }
      },
      {
        label: '路径',
        value: 'filePath'
      },
      {
        label: '标志',
        value: 'processId'
      },
      {
        value: 'fileSize',
        write: 'write'
      },
      {
        value: 'sizeUnit',
        write: 'write'
      }
    ],
    __default__: [
      {
        key: 'ref',
        value: 'file'
      },
      {
        key: 'fileList',
        value: 'getFile',
        type: 'event'
      }
    ]
  },
  {
    __config__: {
      label: '富文本编辑器',
      tag: 'ms-editor',
      tagIcon: 'textarea',
      layout: 'colFormItem',
      showLabel: true,
      labelWidth: null,
      required: true,
      span: 24,
      singleTag: true
    },
    visibile: 'dialogVisible',
    __attr__: [
      // {
      //   value: 'visibile',
      //   write: 'write',
      //   isProp: true
      // }
    ]
  },
  {
    __config__: {
      label: '字典业务组件',
      tag: 'ms-dict',
      tagIcon: 'textarea',
      layout: 'colFormItem',
      showLabel: true,
      labelWidth: null,
      required: true,
      span: 12,
      singleTag: true
    },
    type: 'select',
    'dict-type': null,
    __attr__: [
      {
        label: '类型',
        value: 'type',
        types: 'select',
        conf: {
          lists: [
            {
              id: 'radio',
              value: 'radio'
            },
            {
              id: 'select',
              value: 'select'
            },
            {
              id: 'checkbox',
              value: 'checkbox'
            }
          ]
        }
      },
      {
        value: 'dict-type',
        write: 'write'
      }
    ]
  }
]
